<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="page-view-size" content="1280*720">
  <link rel="stylesheet" href="styles/base.css">
  <title>熊猫部落-订单列表页面</title>
  <style>
    body {
      position: absolute;
      margin: 0;
      padding: 0;
      width: 1280px;
      height: 720px;
      background: url();
      background-color: transparent;
    }

    #detail {
      position: absolute;
      width: 680px;
      padding: 20px;
      top: 209px;
      left: 266px;
      color: #fff;
      font-size: 24px;
      line-height: 32px;
      background: url(images/order-comfim-bg.png) repeat;
      border-radius: 10px;
    }

    #info {
      position: absolute;
      width: 720px;
      height: 200px;
      left: 266px;
      top: 440px;
      text-align: center;
    }

    #info .item {
      display: inline-block;
      font-size: 24px;
      line-height: 50px;
      color: #ffffff;
      margin: 0 30px;
    }
    #info .img-container{
      width: 130px;
      height: 130px;
      background: url(images/order-comfim-bg-1.png);
      padding: 10px;
    }
    #info img{
      display: block;
      width: 100%;
      height: 100%;
    }
  </style>
</head>

<body onload="init()" onunload="exit()">
  <!-- <div id="tab">
    <div id="tab-view" style="position: relative;"></div>
  </div> -->
  <div id="detail">

  </div>
  <div id="info">
    <div class="item">
      <div class="img-container">
        <img src="images/page0-main1-0.png" alt="">
      </div>
      <div>支付宝支付</div>
    </div>
    <div class="item">
      <div class="img-container">
        <img src="images/page0-main1-1.png" alt="">
      </div>
      <div>微信支付</div>
    </div>
    <div class="item">
      <div class="img-container">
        <img src="images/page0-main1-2.png" alt="">
      </div>
      <div>宽带支付</div>
    </div>
  </div>
</body>
<script src="js/jquery.js"></script>
<script src="config/index.js?v=1"></script>
<script src="api/index.js?v=1"></script>
<script src="js/KeyEvent.js?v=12"></script>
<script src="js/event.js?v=12"></script>
<script src="js/utli.js?v=12"></script>
<script src="js/base.js"></script>
<script>
  var obj = [{
    name: '熊猫连续包月 19/1月熊猫连续包月 19/1月',
    detail: '熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包1月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包1月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包月熊猫连续包1月',
    price: '19元/1月'
  }];

  var index = 0;

  function init() {
    renderBg();
    renderDeital()
  }

  function renderBg() {
    var data = getTypeListByTypeId({
      TYPEID: '1284087959661842433'
    }).TYPEs;
    var bg = '';
    if (data.length > 0) {
      bg = data[1].typePicture[0].picPath3;
    }
    $('body').css('background-image', 'url(' + bg + ')');
  }

  function renderDeital() {
    $('#detail').html('订购说明：' + obj[0].detail);
  }



  function onFocus() {
    var eFocus = $('#tab-' + index);
    eFocus.addClass('focus');
    conputeScroll(index);
    starMarquee(eFocus)
    renderDetail();
  }

  function freeFocus() {
    var eFocus = $('#tab-' + index);
    eFocus.removeClass('focus');
    stopMarquee(eFocus)
  }


  function keyDown() {

  }

  function keyUp() {

  }

  function keyEnter() {
    // GY.addUrl(PANDA_PATH + 'vod-play.html?')
  }

  // 计算左侧的偏移量
  function conputeScroll(index) {
    var len = $('.item').length;
    var _diff = 5;
    if (len < _diff) return;
    var ave = Math.floor(_diff / 2);
    var height = 90;
    if (index < ave) {
      $('#tab-view').css('top', 0);
    } else if (index > (len - ave)) {
      $('#tab-view').css('top', -(len - _diff + 1) * height)
    } else {
      $('#tab-view').css('top', -(index - ave) * height)
    }
  }




  function exit() {

  }
</script>


</html>